﻿using System;
using System.Collections.Generic;
using System.Text;

public class SceneObject : ObjectData
{
    private Point _objId = new Point(0, 0);
    private uint _type = 0;
    private uint _modelId = 0;

    public SceneObject(Point ID, uint type, uint modelId)
        : base(null, ID.x + "." + ID.y)
    {
        _objId = ID;
        _type = type;
        _modelId = modelId;
    }

    public uint Type
    {
        get { return _type; }
        set { _type = value; }
    }

    public uint ModelId
    {
        get { return _modelId; }
        set { _modelId = value; }
    }

    public Point ObjID
    {
        get { return _objId; }
        set { _objId = value; }
    }

    override public void HandlePropertiesEx(string PropertiesName, object PropertiesValue)
    {
        if (PropertiesName == "Type") _type = (uint)PropertiesValue;
        if (PropertiesName == "Model") _modelId = (uint)PropertiesValue;

        base.HandlePropertiesEx(PropertiesName, PropertiesValue);
    }

    override public void DeletePropertiesEx(string PropertiesName)
    {
        base.DeletePropertiesEx(PropertiesName);
    }

}
